const state = {
  navBarHeight: '70px'
}

const mutations = {
  SetNavBarHeight: (state, navBarHeight) => {
    state.navBarHeight = navBarHeight ? navBarHeight + 'px' : navBarHeight
  }
}

const actions = {
  setNavBarHeight({ commit }, navBarHeight) {
    commit('SetNavBarHeight', navBarHeight)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
